export default ({ request }) => ({

  ecs_ecsprojectinfo_list(params = {}) {
    return request({
      url: '/ecs/ecsprojectinfo/list',
      params
    })
  },

  sys_user_list(params = {}) {
    return request({
      url: '/sys/user/list',
      params
    })
  },

  sys_user_delete(data = {}) {
    return request({
      url: '/sys/user/delete',
      method: 'post',
      data
    })
  },

  sys_role_select(params = {}) {
    return request({
      url: '/sys/role/select',
      params
    })
  },

  sys_role_info(params = {}) {
    return request({
      url: '/sys/role/info/' + params.id,
      params
    })
  },

  sys_user_info(params = {}) {
    return request({
      url: '/sys/user/info/' + params.id,
      params
    })
  },

  sys_user_x(data = {}) {
    return request({
      url: data.url,
      method: 'post',
      data
    })
  },

  sys_role_list(params = {}) {
    return request({
      url: '/sys/role/list',
      params
    })
  },

  sys_role_delete(data = {}) {
    return request({
      url: '/sys/role/delete',
      method: 'post',
      data
    })
  },

  sys_menu_list(params = {}) {
    return request({
      url: '/sys/menu/list',
      params
    })
  },

  sys_role_x(data = {}) {
    return request({
      url: data.url,
      method: 'post',
      data
    })
  },

  sys_menu_delete(data = {}) {
    return request({
      url: '/sys/menu/delete/' + data.customerId + '/' + data.id,
      method: 'post',
      data
    })
  },

  sys_menu_select(params = {}) {
    return request({
      url: '/sys/menu/select',
      params
    })
  },

  sys_menu_info(params = {}) {
    return request({
      url: '/sys/menu/info/' + params.id,
      params
    })
  },

  sys_menu_x(data = {}) {
    return request({
      url: data.api,
      method: 'post',
      data
    })
  },
})
